﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Cosmetic.DataEntity;
using Cosmetic.Logic;

namespace WebApp.Management.Product
{
    public partial class xinpro : System.Web.UI.Page
    {
        PlateManager PM = new PlateManager();

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnEditProduct_Click(object sender, EventArgs e)
        {

            WeeklySales theweekly = new WeeklySales();
            string a = Session["id"].ToString();
            theweekly.ProductId = new Guid(a);
            theweekly.Sequence = Convert .ToInt32 (this.txtcode.Text);
            PM.Insertxinpin(theweekly );
            Response.Write("<script>alert('添加成功!')</script>");



        }
    }
}
